package com.ruoyi.common.core.cg.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName group
 */

public class Group implements Serializable {
    /**
     * 商品主键
     */

    private Integer id;

    /**
     * 0三人团、1五人团、2十人团、3二十人团
     */
    private Integer people;

    /**
     * 对应people人数
     */
    private Integer totalGroup;

    /**
     * 提货时间
     */
    private Integer pickUpTime;

    /**
     * 零售价格
     */
    private BigDecimal price;

    /**
     * 拼团价格
     */
    private BigDecimal groupPrice;

    /**
     * 审核状态  0未开始、1进行中,2已结束,3已停止
     */
    private Integer status;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm")
    private Date createTime;

    /**
     * 每人限购
     */
    private Integer limitBuy;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm")
    private Date endTime;

    /**
     * 封面图
     */
    private String surfacePlot;
    private Integer maxGroup;

    public Integer getMaxGroup() {
        return maxGroup;
    }

    public void setMaxGroup(Integer maxGroup) {
        this.maxGroup = maxGroup;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 配图1
     */
    private String firstImg;

    /**
     * 配图2
     */
    private String secondImg;

    /**
     * 拼团说明
     */
    private String remark;

    /**
     * 邀请码
     */
    private String invitationCode;
    /**
     * 拼团标题
     */
    private String name;

    /**
     * 所属店铺
     */
    private Store store;

    private Community community;

//    商铺名称
    private String storeName;
//    拼团状态
    private Integer groupStatus;


//    订单状态为0
    private Integer itemStatus0;
//    订单状态为1
    private Integer itemStatus1;

    public Leader getLeader() {
        return leader;
    }

    public void setLeader(Leader leader) {
        this.leader = leader;
    }
    private Integer communityId;

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    private Leader leader;

    public LeaderGroup getLeaderGroup() {
        return leaderGroup;
    }

    public void setLeaderGroup(LeaderGroup leaderGroup) {
        this.leaderGroup = leaderGroup;
    }

    private LeaderGroup leaderGroup;

    public Integer getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Integer leaderId) {
        this.leaderId = leaderId;
    }

    private Integer leaderId;


    public Integer getItemStatus0() {
        return itemStatus0;
    }

    public void setItemStatus0(Integer itemStatus0) {
        this.itemStatus0 = itemStatus0;
    }

    public Integer getItemStatus1() {
        return itemStatus1;
    }

    public void setItemStatus1(Integer itemStatus1) {
        this.itemStatus1 = itemStatus1;
    }

    public Integer getGroupStatus() {
        return groupStatus;
    }

    public void setGroupStatus(Integer groupStatus) {
        this.groupStatus = groupStatus;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    /**
     * 商品主键
     */
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }





    /**
     * 0三人团、1五人团、2十人团、3二十人团
     */
    public Integer getPeople() {
        return people;
    }

    /**
     * 0三人团、1五人团、2十人团、3二十人团
     */
    public void setPeople(Integer people) {
        this.people = people;
    }

    /**
     * 对应people人数
     */
    public Integer getTotalGroup() {
        return totalGroup;
    }

    /**
     * 对应people人数
     */
    public void setTotalGroup(Integer totalGroup) {
        this.totalGroup = totalGroup;
    }


    public Integer getPickUpTime() {
        return pickUpTime;
    }

    public void setPickUpTime(Integer pickUpTime) {
        this.pickUpTime = pickUpTime;
    }

    /**
     * 零售价格
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 零售价格
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 拼团价格
     */
    public BigDecimal getGroupPrice() {
        return groupPrice;
    }

    /**
     * 拼团价格
     */
    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    /**
     * 审核状态  0未开始、1进行中,2已结束,3已停止
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 审核状态  0未开始、1进行中,2已结束,3已停止
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 开始时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 开始时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 每人限购
     */
    public Integer getLimitBuy() {
        return limitBuy;
    }

    /**
     * 每人限购
     */
    public void setLimitBuy(Integer limitBuy) {
        this.limitBuy = limitBuy;
    }

    /**
     * 结束时间
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 结束时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 封面图
     */
    public String getSurfacePlot() {
        return surfacePlot;
    }

    /**
     * 封面图
     */
    public void setSurfacePlot(String surfacePlot) {
        this.surfacePlot = surfacePlot;
    }

    /**
     * 配图1
     */
    public String getFirstImg() {
        return firstImg;
    }

    /**
     * 配图1
     */
    public void setFirstImg(String firstImg) {
        this.firstImg = firstImg;
    }

    /**
     * 配图2
     */
    public String getSecondImg() {
        return secondImg;
    }

    /**
     * 配图2
     */
    public void setSecondImg(String secondImg) {
        this.secondImg = secondImg;
    }

    /**
     * 拼团说明
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 拼团说明
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 邀请码
     */
    public String getInvitationCode() {
        return invitationCode;
    }

    /**
     * 邀请码
     */
    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }


}